package com.ruoyi.common.request;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author zfan
 */
@Api(tags = "下拉框")
@Data
public class ComboBox {

    @ApiModelProperty("唯一键约束")
    private String id;

    @ApiModelProperty("内容")
    private String text;

    public ComboBox(String id, String text) {
        this.id = id;
        this.text = text;
    }

    public static ComboBox of(String id, String text) {
        return new ComboBox(id, text);
    }
}
